﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JBeamLibrary.VehicleParts.Enums;

namespace JBeamLibrary.VehicleParts.Elements
{
    public class Gear
    {
        #region Properties

        public GearPosition Position { get; set; }

        public float Value { get; set; }

        #endregion

        #region CTORs

        public Gear()
        {
            Position = GearPosition.Neutral;
            Value = float.MinValue;
        }

        public Gear(GearPosition position, float value)
        {
            Position = position;
            Value = value;
        }

        #endregion

        #region Methods

        public override string ToString()
        {
            return string.Format("{0} > {1}", Position, Value);
        }

        #endregion
    }
}
